package com.newsproject.pojo.DTO;

import Util.FormatTime;
import lombok.Data;

import java.util.Date;

@Data
public class UserDTO {
     private int userId;
     private String userName;
     private String email;
     private int gender;
     private String address;
     private Date createTime;
     private String avatar;
     private String introduction;
     private int followerCount;
     private int bookmarkCount;
     private int isBanned;
     private int isPrivateMessage;
     private int banAccount;
     private int verifiedStatus;
     private int adminStatus;    //用户状态 0普通用户 1管理员
     private int memberStatus;   //会员状态 0普通用户 1会员用户 2超级用户

    public String getCreateTime(){
        return FormatTime.formatDateTime(createTime);
    }
}
